package org.qiyu.live.account.provider.service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-10-04
 * Time: 11:05
 */
public interface IAccountTokenService {

    /**
     * 创建并且保存一个token
     * @param userId userId
     * @return 返回一个token
     */
    String createAndSaveLoginToken(Long userId);


    /**
     * 根据token获取一个userId
     * @param token token
     * @return 返回userId
     */
    Long getUserIdByToken(String token);
}